package com.zzyl.service;

import com.aliyun.iot20180120.models.*;
import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.vo.DeviceVo;
import com.zzyl.vo.ProductVo;

import java.util.List;

public interface DeviceService {
    void syncProductList();

    List<ProductVo> allProduct();

    void registerDevice(DeviceDto deviceDto);

    PageResponse<DeviceVo> pageQueryDevice(DevicePageQueryDto devicePageQueryDto);

    DeviceVo queryDeviceDetail(QueryDeviceDetailRequest queryDeviceDetailRequest);

    /**
     * 查看指定产品的已发布物模型中的功能定义详情
     *
     * @param request 查询已发布物模型请求模型
     * @return 已发布物模型中的功能定义详情
     */
    ResponseResult<QueryThingModelPublishedResponseBody.QueryThingModelPublishedResponseBodyData> queryThingModelPublished(QueryThingModelPublishedRequest request);

    ResponseResult<QueryDevicePropertyStatusResponseBody.QueryDevicePropertyStatusResponseBodyData> queryDevicePropertyStatus(QueryDevicePropertyStatusRequest request);

    void updateDevice(DeviceDto deviceDto);

    void deleteDevice(DeviceDto deviceDto);
}
